﻿@model CandidateManager.Areas.Coach.Models.ScheduleModifyModel

@{
    ViewBag.Title = @Resources.Coach.CoachCreateScheduleTitle;
}

<h2>@Resources.Coach.CoachManageSchedule</h2>
@*@CandidateManager.App_Code.Helpers.LocalizationHelper.GetCurrentCultureDateFormatForJS()*@
<script type="text/javascript">
    $(document).ready(function () {
        $('.date').datepicker({ dateFormat: 'mm/dd/yy', minDate: 0, maxDate: "50" });
    });
</script>

@using (Html.BeginForm())
{
    <table class="bordered">
        <tr>
            <td class="vertical-header">@Resources.Coach.CoachSubjectName</td>
            <td>
                @Html.DropDownListFor(s => s.SubjectId, new SelectList(Model.Subjects, "Id", "Name"), @Resources.Coach.CoachSelectSubject)
            </td>
        </tr>
        <tr>
            <td class="vertical-header">@Resources.Coach.CoachGroupName</td>
            <td>
                @Html.DropDownListFor(g => g.GroupId, new SelectList(Model.Groups, "Id", "GroupName"), @Resources.Coach.CoachSelectGroup)
            </td>
        </tr>
        <tr>
            <td class="vertical-header">@Resources.Coach.CoachStartDate</td>
            <td>@Html.TextBoxFor(m => m.Schedule.StartDate, "{0:MM/dd/yy}", new { @class = "date" })</td>
        </tr>
        <tr>
            <td class="vertical-header">@Resources.Coach.CoachEndDate</td>
            <td>@Html.TextBoxFor(m => m.Schedule.EndDate, "{0:MM/dd/yy}", new { @class = "date" })</td>
        </tr>
    </table>
    
    <p>
        @Html.ActionLink(@Resources.Coach.CoachBackButton, "List", "Schedule", new { @class = "common-btn-large BlueColor" })
        <input class="common-btn-large BlueColor" type="submit" value="@Resources.Coach.CoachSubmitButton">
    </p>
    @Html.ValidationSummary(true)
}